package com.zxx.pattern.observerPattern.observer_bus_reason;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

/**
 * @author zxx on 2021/3/11
 */
public class ActivityB extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent = new Intent("my_action");
        intent.putExtra("user", new UserA("ZXX"));

        sendBroadcast(intent);
    }
}
